using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace ScreenMonkey.Plugin.Clips.Song
{
    public class VerseLyrics
    {
        public VerseLyrics()
        {

        }

        public VerseLyrics(VerseLabel label, string words)
        {
            Label = label;
            Words = words;
        }

        public VerseLyrics(VerseLyrics source)
        {
            this.Label = source.Label;
            this.Words = source.Words;
        }

        private VerseLabel label;

        public VerseLabel Label
        {
            get { return label; }
            set { label = value; }
        }

        private string words = "";

        public string Words
        {
            get { return words; }
            set { words = value; }
        }

        public override string ToString()
        {
            string text = "";

            if (Label != null) text += Label.ToString() + "\n";
            if(Words != null) text += Words.ToString();

            return text;            
        }

        public string ToString(VerseContent content)
        {
            string text = "";

            if (Label != null && content == VerseContent.LyricsAndLabel) text += Label.ToString() + "\n";
            if (Words != null) text += Words.ToString();

            return text;
        }

        public enum VerseContent
        {
            LyricsOnly,
            LyricsAndLabel
        }
    }
}
